<html>
<head><meta charset="utf-8"><title>rustc_lexer update · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_lexer.20update.html">rustc_lexer update</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="243625789"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_lexer%20update/near/243625789" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> ruster <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_lexer.20update.html#243625789">(Jun 23 2021 at 09:18)</a>:</h4>
<p>Why is it that <code>rustc_lexer</code> hasn't received an update in 2 years? Is it still being published to <a href="http://crates.io">crates.io</a>? I need to parse some Rust</p>



<a name="243635198"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_lexer%20update/near/243635198" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Vadim Petrochenkov <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_lexer.20update.html#243635198">(Jun 23 2021 at 11:02)</a>:</h4>
<p>cc <span class="user-mention" data-user-id="133169">@matklad</span></p>



<a name="243636038"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_lexer%20update/near/243636038" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hyd-dev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_lexer.20update.html#243636038">(Jun 23 2021 at 11:12)</a>:</h4>
<blockquote>
<p>I need to parse some Rust</p>
</blockquote>
<p>rust-analyzer is using <a href="https://crates.io/crates/rustc-ap-rustc_lexer">https://crates.io/crates/rustc-ap-rustc_lexer</a> instead of <code>rustc_lexer</code>: <a href="https://github.com/rust-analyzer/rust-analyzer/blob/3381c2e4a8bcea2db3edd1741a7dd3fcdb15231b/crates/syntax/Cargo.toml#L17">https://github.com/rust-analyzer/rust-analyzer/blob/3381c2e4a8bcea2db3edd1741a7dd3fcdb15231b/crates/syntax/Cargo.toml#L17</a><br>
<code>rustc-ap-rustc_lexer</code> seems up to date.</p>



<a name="243636474"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_lexer%20update/near/243636474" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> ruster <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_lexer.20update.html#243636474">(Jun 23 2021 at 11:17)</a>:</h4>
<p>Thanks!</p>



<a name="243640865"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_lexer%20update/near/243640865" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_lexer.20update.html#243640865">(Jun 23 2021 at 12:02)</a>:</h4>
<p>Original idea was indeed to publish <code>rustc_lexer</code> crate with meaningful versions, but just using the well-trodden path of the least resistance and relying on ap-published crates turned out to be easier.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>